#ifndef UPDATETANKPOSCALLBACK_H_
#define UPDATETANKPOSCALLBACK_H_

#include <osg/NodeCallback>
#include <osg/Vec3d>
#include <osg/PositionAttitudeTransform>
#include <iostream>
#include <osg/MatrixTransform>
#include "SceneGraphHandler.h"


class UpdateScenePosCallback : public osg::NodeCallback{

public:

    UpdateScenePosCallback(SceneGraphHandler* instance) : winkel( 0. ), x(0.), minusX(0.),
	vor(true){
        sceneHandler = instance;
    }

    virtual void operator()(osg::Node* node, osg::NodeVisitor* nv);

protected:
	double winkel, x, minusX;
	bool vor;
    osg::Vec3d scenePos;
    SceneGraphHandler* sceneHandler;
};


#endif
